package com.ym.manager.admin.statics;

import com.ym.datasource.DataSourceType;
import com.ym.datasource.UseDataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author 但何非
 * @Date 2022/12/13 20:27
 * @ClassName: StaticsService
 * @Description:
 * @Version:
 */
@Service
public class StaticsService {
    @Autowired
    private StaticsDao staticsDao;
    @UseDataSource(DataSourceType.YS_IM)
    public Map<String, Object> payInfo(int payChannel,long beginTime, long endTime) {
        return staticsDao.payInfo(payChannel,beginTime,endTime);
    }

    @UseDataSource(DataSourceType.YS_IM)
    public Map<String, Object> withdrawInfo(int payChannel,long beginTime, long endTime) {
        return staticsDao.withdrawInfo(payChannel,beginTime,endTime);
    }

    @UseDataSource(DataSourceType.YS_IM)
    public long zfbTotalAmount() {
        return staticsDao.zfbTotalAmount();
    }

    @UseDataSource(DataSourceType.YS_IM)
    public int zfbTotalUser() {
        return staticsDao.zfbTotalUser();
    }

    @UseDataSource(DataSourceType.YS_IM)
    public long bankTotalAmount() {
        return staticsDao.bankTotalAmount();
    }

    @UseDataSource(DataSourceType.YS_IM)
    public int bankTotalUser() {
        return staticsDao.bankTotalUser();
    }

    @UseDataSource(DataSourceType.YS_IM)
    public List<ZfbMoneyInfo> withdrawZfbList(long beginTime, long endTime) {
        return staticsDao.withdrawZfbList(beginTime,endTime);
    }

    @UseDataSource(DataSourceType.YS_IM)
    public List<ZfbMoneyInfo> pzyZfbList(long beginTime, long endTime) {
        return staticsDao.pzyZfbList(beginTime,endTime);
    }
}
